package com.bw.zg2.widgit

import android.content.Context
import android.content.Intent
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.EditText
import android.widget.FrameLayout
import android.widget.ImageView
import android.widget.LinearLayout
import com.bw.zg2.R

/**
 *
 * @ClassName: SearchView
 * @Description: java类作用描述
 * @Author: zhangyanchao
 * @CreateDate: 2024/9/20 10:36 AM
 * @Version: 1.0
 */
class SearchView : LinearLayout {

    lateinit var etSearch: EditText
    lateinit var imgSearch: ImageView

    constructor(context: Context?) : super(context)
    constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
        LayoutInflater.from(context).inflate(R.layout.search_home_layout, this)
        initView()
    }

    private fun initView() {
        etSearch = findViewById(R.id.et_search)
        imgSearch = findViewById(R.id.img_search)
//        imgSearch.setOnClickListener {
//            //
//        }
    }




}